package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.MeetingSystem;
import com.ruoyi.system.service.IMeetingSystemService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author sun li
 * @Date 2019/3/30 13:38
 * @Description
 */
@Controller
@RequestMapping("/system/paiming")
public class PaiMingController extends BaseController {
    private String prefix = "system/paiming";

    @Autowired
    private IMeetingSystemService meetingSystemService;
    /**   跳转到 排名信息的首页*/
    @RequiresPermissions("system:paiming:view")
    @GetMapping()
    public String meetingSystem()
    {
        return prefix + "/paiming";
    }


    /**
     * 查询队组 的排名 还有 积分展示
     */
    @RequiresPermissions("system:paiming:list")
    @PostMapping("/list")
    @ResponseBody
    public TableDataInfo list(MeetingSystem meetingSystem)
    {
        startPage();
        List<MeetingSystem> list = meetingSystemService.selectdui(meetingSystem);
        return getDataTable(list);
    }





    /**
     * 导出参加会议用户列表
     */
  /*  @RequiresPermissions("system:paiming:export")
    @PostMapping("/export")
    @ResponseBody
    public AjaxResult export()
    {
        List<MeetingSystem> list = meetingSystemService.selectdui();
        ExcelUtil<MeetingSystem> util = new ExcelUtil<MeetingSystem>(MeetingSystem.class);
        return util.exportExcel(list, "paiming");
    }
*/



}
